package com.xxgc.eow.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 通知表
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-28
 */
@Getter
@Setter
@Schema(name = "Notice", description = "通知表")
public class Notice implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "通知id")
    @TableId(value = "notice_id", type = IdType.AUTO)
    private Integer noticeId;

    @Schema(description = "用户id")
    private Integer userId;

    @Schema(description = "通知内容")
    private String noticeContent;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(description = "销毁时间")
    private LocalDateTime destroyTime;

    @Schema(description = "假删除状态")
    private Integer tip;

    @Schema(description = "通知类型（0点赞、1搜藏、2评论）")
    private Byte noticeType;

    @Schema(description = "公共id")
    private Integer communalId;

    @Schema(description = "被点赞用户的id")
    private Integer notifiedId;
}
